﻿<%@ Page Language="C#" MasterPageFile="~/Admin.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="Custom_Default" %>

<asp:Content ID="Content1" ContentPlaceHolderID="phActions" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="phSubMenu" Runat="Server">
    <asp:Repeater ID="rptLinks" DataSourceID="dsCustomPages" runat="server">
        <ItemTemplate>
            <a class="<%#(string)Eval("Name") == Request.QueryString["Name"] ? "selected" : "" %>" href="Default.aspx?Name=<%#Server.UrlEncode((string)Eval("Name"))%>"><%#Eval("Name")%></a>
        </ItemTemplate>
    </asp:Repeater>
    <acms:CustomAdminPageDataSource ID="dsCustomPages" runat="server" />
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="phMain" Runat="Server">
    <ajax:Accordion Id="title" SkinID="Title" runat="server">
        <Panes>
            <ajax:AccordionPane runat="server">
                <Header>
                    <asp:Label ID="lblTitleHeader" Text="Custom Pages" runat="server" />
                </Header>
                <Content>
                    <asp:Label ID="lblTitleContent" Text="Select which page to use for the list below. These pages are custom to your website ie not the general content managemnt system." runat="server" />
                </Content>
            </ajax:AccordionPane>
        </Panes>
    </ajax:Accordion>
    <asp:ListView ID="listCustom" GroupItemCount="1" DataSourceID="dsCustomPages2" runat="server">   
        <GroupTemplate>
            <div class="layout_row">
                <asp:PlaceHolder ID="itemPlaceholder" runat="server" />
            </div>
        </GroupTemplate>
        <LayoutTemplate>
            <div class="layout_grid">
                <asp:PlaceHolder ID="groupPlaceholder" runat="server" />
            </div>
        </LayoutTemplate>
        <ItemTemplate>
            <div class="layout_item" style="width:33%;float:left;">
                <h3><a href="Default.aspx?Name=<%#Server.UrlEncode((string)Eval("Name"))%>"><%#Eval("Name")%></a></h3>
                <p><%#Eval("Notes") %></p>
            </div>
        </ItemTemplate>
    </asp:ListView>
    <asp:PlaceHolder ID="phCustomControl" runat="server"></asp:PlaceHolder>
    <acms:CustomAdminPageDataSource ID="dsCustomPages2" runat="server" />
</asp:Content>

